<template>
  <div>
    <h3 :style="{color:color}">孙子组件</h3>
  </div>
</template>

<script>
  import {inject} from "@vue/composition-api";

  export default {
    setup(){
      const color = inject("themeColor");
      return {
        color
      };
    }
  };
</script>

<style scoped></style>
